package com.fzh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fzh.mapper.OrderDetailsMapper;
import com.fzh.pojo.entity.OrderDetails;
import com.fzh.service.OrderDetailsService;

@Service
public class OrderDetailsServiceImpl implements OrderDetailsService {
    
	@Autowired
	private OrderDetailsMapper orderDetailsMapper;
	
	@Override
	public int deleteById(Integer odsId) {
		
		return orderDetailsMapper.deleteById(odsId);
	}

	@Override
	public int insertOrderDetails(OrderDetails record) {		
		return orderDetailsMapper.insertOrderDetails(record);
	}

	@Override
	public OrderDetails selectById(Integer odsId) {
		
		return orderDetailsMapper.selectById(odsId);
	}

	@Override
	public int updateById(OrderDetails record) {
		
		return orderDetailsMapper.updateById(record);
	}

	@Override
	public List<OrderDetails> selectOrderDetailsByIds(String[] ids) {
		
		return orderDetailsMapper.selectOrderDetailsByIds(ids);
	}

	@Override
	public List<OrderDetails> selectByOrdId(String orderCode) {
		return orderDetailsMapper.selectByOrdId(orderCode);
	}

}
